import cv2 as cv
import numpy as np
import argparse
import imutils

ap = argparse.ArgumentParser()
ap.add_argument("-i","--image",required=True,help="The Path To Image")
args = vars(ap.parse_args())

image = cv.imread(args["image"])
rotated = imutils.rotate(image,-30)
B,G,R = rotated[254,335]
print("R = {r},G = {g}, B = {b}".format(r = R,g = G,b = B))


rotated = imutils.rotate(image,110)
B,G,R = rotated[136,312]
print("R = {r},G = {g}, B = {b}".format(r = R,g = G,b = B))

rotated = imutils.rotate(image,88,center=(50,50))
B,G,R = rotated[10,10]
print("R = {r},G = {g}, B = {b}".format(r = R,g = G,b = B))
